<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

  <c:choose>
	<c:when test="${user != null}">
		<c:if test="${usertype != 'Admin User'}">
			<jsp:forward page="404.jsp" />
		</c:if>
	</c:when>
	<c:otherwise>
		<jsp:forward page="login.jsp" />
	</c:otherwise>
</c:choose>   

<div id="content">
	<div id="page-heading">
		<h1>Reject transaction result</h1>
	</div>
	<div id="page-heading">
		<h1 style="color: blue">${success}</h1>
	</div>
	<div id="page-heading">
		<h1 style="color: red">${errorSQL}</h1>
	</div>	
	<table id="content-table">
		<tr>
			<th rowspan="3" class="sized"><img
				src="resource/images/shared/side_shadowleft.jpg" width="20"
				height="300" alt="" /></th>
			<th class="topleft"></th>
			<td id="tbl-border-top">&nbsp;</td>
			<th class="topright"></th>
			<th rowspan="3" class="sized"><img
				src="resource/images/shared/side_shadowright.jpg" width="20"
				height="300" alt="" /></th>
		</tr>
		<tr>
			<td id="tbl-border-left"></td>
			<td>
				<!--  start content-table-inner -->
				<div id="content-table-inner">
					<table>
						<tr valign="top">
							<td>
								<!--  start step-holder --> <!--  end step-holder --> <!-- start id-form -->

								<table id="id-form">
									<tr>
										<th valign="top">Transaction Id</th>
										<td>${transaction.idTransaction}</td>
										<td></td>
									</tr>

									<tr>
										<th valign="top">Type</th>
										<td>${transaction.transactionType}</td>
										<td></td>
									</tr>

									<tr>
										<c:if test="${transaction.transactionType != 'Transfer'}">
											<th valign="top">Account number</th>
										</c:if>
										<c:if test="${transaction.transactionType == 'Transfer'}">
											<th valign="top">Sender's account number</th>
										</c:if>
										<td>${transaction.sendAccountId.accountNumber}</td>
										<td style="color: red">${validTransactionSendAccount}
											${validTransactionSendAccountActive}</td>
									</tr>

									<c:if test="${transaction.transactionType == 'Transfer'}">
										<tr>
											<th valign="top">Receiver's account number</th>
											<td>${transaction.receiveAccountId.accountNumber}</td>
											<td style="color: red">${validTransactionReceiveAccount}
												${validTransactionReceiveAccountActive}</td>
										</tr>
									</c:if>

									<tr>
										<c:if test="${transaction.transactionType == 'Add Funds'}">
											<th valign="top">Amount add funds</th>
										</c:if>
										<c:if test="${transaction.transactionType == 'Withdraw'}">
											<th valign="top">Amount withdraw</th>
										</c:if>
										<c:if test="${transaction.transactionType == 'Transfer'}">
											<th valign="top">Amount transfer</th>
										</c:if>
										<td>${transaction.changeAmount}</td>
										<td style="color: red">${validTransactionAmount}</td>
									</tr>

									<tr>
										<th valign="top">State</th>
										<td>${transaction.transactionStatus}</td>
										<td></td>
									</tr>

									<tr>
										<th valign="top">Create Date</th>
										<td>${transaction.beginTime}</td>
										<td></td>
									</tr>

									<tr>
										<th valign="top">Finish Date</th>
										<td>${transaction.endTime}</td>
										<td></td>
									</tr>

									<tr>
										<th valign="top">Support Name</th>
										<td>${transaction.userSupportId.userName}</td>
										<td></td>
									</tr>

									<tr>
										<th valign="top">Administrator Name</th>
										<td>${transaction.userAdminId.userName}</td>
										<td></td>
									</tr>

									<tr>
										<th valign="top">Comment</th>
										<td>${transaction.comment}</td>
										<td></td>
									</tr>

									<tr>
										<th>&nbsp;</th>
										<td valign="top"><input
											onClick="location.href='adminClose.html'" type="button"
											class="btnReject" value="OK" id="transfer" /></td>
										<td></td>
									</tr>

								</table> <!-- end id-form  -->

							</td>
							<td></td>
						</tr>

						<tr>
							<td><img src="resource/images/shared/blank.gif" width="695"
								height="1" alt="blank" /></td>
							<td></td>
						</tr>
					</table>

					<div class="clear"></div>


				</div> <!--  end content-table-inner  -->
			</td>
			<td id="tbl-border-right"></td>
		</tr>
		<tr>
			<th class="sized bottomleft"></th>
			<td id="tbl-border-bottom">&nbsp;</td>
			<th class="sized bottomright"></th>
		</tr>
	</table>


	<div class="clear">&nbsp;</div>

</div>